Drawing.copySvgBrush Method

Copies the applied value or def element reference from a brush from one SVG element to another.
 
 
Static This method is static.

Parameters

fromElement

Type: SVGElement - May be null
The element from which to copy the applied brush.
toElement

Type: SVGElement
The element to which to copy the applied brush.
propertyName

Type: String
The name in JavaScript of the CSS property or attribute to copy from/to.
toAttribute

Type: Boolean
True if the brush is applied to attributes of the elements; otherwise, false if applied to CSS properties.